<ion-view title="运单列表">
  <ion-nav-buttons side="left">
    <button class="button back-button buttons icon ion-ios-arrow-left button-clear header-item" nav-direction="back" ng-click="myGoBack()">返回</button>
  </ion-nav-buttons>
  <ion-content >

    <ion-refresher
      pulling-text="下拉刷新..."
      on-refresh="doRefresh()">
    </ion-refresher>

    <div ng-if="showloading" style="margin-top:60px; text-align: center">
      <ion-spinner icon="ios" style="height: 60px; width: 60px;;"></ion-spinner>
    </div>
    <ion-list ng-if="showloading == false">
      <h5 ng-if="cydData==null||cydData==''" style="color: #69717d;text-align: center;margin-top: 50px;">未找到数据</h5>
      <ion-item collection-repeat="cyd in cydData" class="cydListItem" style="padding-top: 5px; padding-bottom: 5px;border-top-style: none;border-bottom-style: none;">
        <div class="ydList card list-inset" style="margin-bottom: 5px;">
          <div class="xuhao">
            <div class="qs-list-operation" ng-if="cyd.cyzt<'100'">
              <div class="light button-border" ui-sref="shrjsdetail({cyd_id:cyd.cyd_id,cylx:cyd.cylx,mdd:cyd.mdd})">
                <i class="light" id="jsBtn">拒收</i>
              </div>
              <i class="light" style="float: right;">丨</i>
              <div class="light button-border" ui-sref="shrqsdetail({cyd_id:cyd.cyd_id,shrmc:cyd.shrmc,shrdh:cyd.shrdh,qssl:cyd.hwsl,cylx:cyd.cylx,mdd:cyd.mdd})">
                <i class="light" id="qsBtn">签收</i>
              </div>
            </div>
          </div>
          <div ui-sref="cydtab({ cyd_id : cyd.cyd_id })" id="detailBtn">
            <label class="item item-input">
              <i class="list-input">承运单号：</i>
              <p>{{cyd.cydh}}</p>
              <img src="img/cyzt{{cyd.qsfs==2?'160':cyd.cyzt}}.png"class="zt">
            </label>
            <label class="item item-input">
              <i class="list-input">物流公司：</i>
              <p>{{cyd.bmmc}}</p>
            </label>
            <label class="item item-input">
              <i class="list-input">货物名称：</i>
              <p>{{cyd.hwmc}}</p>
            </label>
            <label class="item item-input">
              <i class="list-input">下单日期：</i>
              <p>{{cyd.cyrq}}</p>
            </label>
            <label class="item item-input">
              <i class="list-input">货物件数：</i>
              <p ng-if="cyd.hwsl!=''">{{cyd.hwsl}}件</p>
            </label>
          </div>
        </div>
      </ion-item>
    </ion-list>
    <ion-infinite-scroll   on-infinite="loadMore()"  distance="1%" ng-if="hasNextPage()"></ion-infinite-scroll>
  </ion-content>
</ion-view>
